package net.minecraft.client.renderer.entity;

import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.entity.layers.LayerCustomHead;
import net.minecraft.client.renderer.entity.layers.LayerHeldItem;
import net.minecraft.entity.EntityLiving;
import net.minecraft.util.ResourceLocation;

public class RenderBiped<T extends EntityLiving> extends RenderLiving<T> {
	private static final ResourceLocation DEFAULT_RES_LOC = new ResourceLocation("textures/entity/steve.png");
	protected ModelBiped modelBipedMain;
	protected float field_77070_b;

	public RenderBiped(RenderManager renderManagerIn, ModelBiped modelBipedIn, float shadowSize) {
		this(renderManagerIn, modelBipedIn, shadowSize, 1.0F);
		this.addLayer(new LayerHeldItem(this));
	}

	public RenderBiped(RenderManager renderManagerIn, ModelBiped modelBipedIn, float shadowSize, float p_i46169_4_) {
		super(renderManagerIn, modelBipedIn, shadowSize);
		this.modelBipedMain = modelBipedIn;
		this.field_77070_b = p_i46169_4_;
		this.addLayer(new LayerCustomHead(modelBipedIn.bipedHead));
	}

	/**
	 * Returns the location of an entity's texture. Doesn't seem to be called unless
	 * you call Render.bindEntityTexture.
	 */
	protected ResourceLocation getEntityTexture(T entity) {
		return DEFAULT_RES_LOC;
	}

	public void transformHeldFull3DItemLayer() {
		GlStateManager.translate(0.0F, 0.1875F, 0.0F);
	}
}
